<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js数组</title>
		<script>
			var a=new Array(10);
			var b=["ggg","fff","kkkk","344"];
			alert(typeof(b));
			b[0]="陈旭";
			b[1]="马琨";
			b[100]="张国栋";
			b["clsName"]="java79";
			alert(b.length);
			alert(b.join("$"));
			b.length=10;
			alert(b.join());
			alert(b["clsName"]);//Map
			for(var i in b){
				console.log(i,b[i]);
			}
		</script>
	</head>
	<body>
	</body>
</html>